import request from '@/utils/request'

// 任务总览列表
export function taskOverviewlist(query) {
    return request({
        url: '/task/assignment/config/getAllList',
        method: 'get',
        params: query
    })
}

//一键分配
export function oneclickAllocation(query) {
    return request({
        url: '/task/assignment/config/assignmentByExamId',
        method: 'post',
        params: query
    })
}

//单个任务总览编辑修改 
export function singQuestionassignment(data) {
    return request({
        url: '/task/assignment/config',
        method: 'put',
        data: data
    })
}

//批量任务总览编辑修改
export function batchclickAllocation(data) {
    return request({
        url: '/task/assignment/config/batchSetting',
        method: 'post',
        data: data
    })
}

//批量清空配置
export function deleteQuestion(data) {
    return request({
        url: '/task/assignment/config/batchClean',
        method: 'post',
        data: data
    })
}

//分配学校
export function Allocateschoolslist(query) {
    return request({
        url: '/task/school/config/list',
        method: 'get',
        params: query
    })
}

//学校分配情况列表
export function getschoolTask(query) {
    return request({
        url: '/task/school/config/list',
        method: 'get',
        params: query
    })
}

export function getReviewStatus(query) {
    return request({
        url: '/task/assignment/config/getReviewStatus',
        method: 'get',
        params: query
    })
}

//批量不联阅修改
export function batchNotreadtogether(data) {
    return request({
        url: '/task/school/config/batchUpdateStatus',
        method: 'post',
        data: data
    })
}

//待分配教师
export function getassignedTeachers(query) {
    return request({
        url: '/task/teacher/stats/getUnAssignTeachers',
        method: 'get',
        params: query
    })
}

//已分配教师
export function Gettaskteacherlist(query) {
    return request({
        url: '/task/teacher/stats/list',
        method: 'get',
        params: query
    })
}

//加入教师分配
export function taskteacherStats(data) {
    return request({
        url: '/task/teacher/stats',
        method: 'post',
        data: data
    })
}

//统一修改教师任务量
export function taskteacherStatsUpdate(data) {
    return request({
        url: '/task/teacher/stats',
        method: 'post',
        data: data
    })
}

//一键自动分配
export function taskschoolAssignment(data) {
    return request({
        url: '/task/school/config/schoolAssignment',
        method: 'post',
        data: data
    })
}

//统一修改学校任务量

export function taskschoolUpdateSchoolTaskCount(data) {
    return request({
        url: '/task/school/stats/updateSchoolTaskCount',
        method: 'post',
        data: data
    })
}

//修改分配规则

export function taskschoolUpdateEditAssignmnetType(data) {
    return request({
        url: '/task/school/config/editAssignmnetType',
        method: 'post',
        params: data
    })
}

//分配详情
export function taskschoolDetail(data) {
    return request({
        url: '/task/school/stats/list',
        method: 'get',
        params: data
    })
}

//拉取提组
export function syncQuestionGroup(data) {
    return request({
        url: '/task/assignment/config/syncQuestionGroup',
        method: 'get',
        params: data
    })
}

export function getSchoolConfig(data) {
    return request({
        url: '/task/school/config/getSchoolConfig',
        method: 'get',
        params: data
    })
}

export function getOpsStatus(data) {
    return request({
        url: '/task/assignment/config/getOpsStatus',
        method: 'get',
        params: data
    })
}